home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _6CC48D6A822A40E49261080682A0762E < prev    next >
Encoding:
Text File  |  2004-01-06  |  4.0 KB  |  147 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2. Materials["mat_metal_sheet"] = {
  3.     type="mat_metal_sheet",
  4. -------------------------------------
  5.     PhysicsSounds=PhysicsSoundsTable.Hard,
  6. -------------------------------------    
  7.     bullet_drop_single = CommonEffects.common_bullet_drop_single_metal,
  8.     bullet_drop_rapid = CommonEffects.common_bullet_drop_rapid_metal,
  9. -------------------------------------    
  10.     bullet_hit = {
  11.         sounds = {
  12.             {"Sounds/bullethits/bsheet1.wav",SOUND_UNSCALABLE,200,5,60},
  13.             {"Sounds/bullethits/bsheet2.wav",SOUND_UNSCALABLE,200,5,60},
  14.             {"Sounds/bullethits/bsheet3.wav",SOUND_UNSCALABLE,200,5,60},
  15.             {"Sounds/bullethits/bsheet4.wav",SOUND_UNSCALABLE,200,5,60},
  16.             
  17.         },
  18.         
  19.         decal = { 
  20.             texture = System:LoadTexture("Textures/Decal/metal.dds"),
  21.             scale = 0.04,
  22.         },
  23.         
  24.         particleEffects = {
  25.             name = "bullet.hit_metal.a",
  26.         },
  27.     },
  28.     pancor_bullet_hit = {
  29.         sounds = {
  30.             {"Sounds/bullethits/bsheet1.wav",SOUND_UNSCALABLE,200,5,60},
  31.             {"Sounds/bullethits/bsheet2.wav",SOUND_UNSCALABLE,200,5,60},
  32.             {"Sounds/bullethits/bsheet3.wav",SOUND_UNSCALABLE,200,5,60},
  33.             {"Sounds/bullethits/bsheet4.wav",SOUND_UNSCALABLE,200,5,60},
  34.             
  35.         },
  36.         
  37.         decal = { 
  38.             texture = System:LoadTexture("Textures/Decal/metal.dds"),
  39.             scale = 0.04,
  40.         },
  41.         
  42.         particleEffects = {
  43.             name = "bullet.hit_metal_pancor.a",
  44.         },
  45.     },
  46.  
  47.     -------------------------
  48.     melee_punch = {
  49.         sounds = {
  50.             {"sounds/player/footsteps/metal/step1.wav",SOUND_UNSCALABLE,185,5,30},
  51.             {"sounds/player/footsteps/metal/step2.wav",SOUND_UNSCALABLE,185,5,30},
  52.             {"sounds/player/footsteps/metal/step3.wav",SOUND_UNSCALABLE,185,5,30},
  53.             {"sounds/player/footsteps/metal/step4.wav",SOUND_UNSCALABLE,185,5,30},
  54.         },
  55.     },
  56.     melee_slash = {
  57.         sounds = {
  58.             {"sounds/weapons/machete/machetesheet1.wav",SOUND_UNSCALABLE,185,5,30},
  59.             {"sounds/weapons/machete/machetesheet2.wav",SOUND_UNSCALABLE,185,5,30},
  60.             {"sounds/weapons/machete/machetesheet3.wav",SOUND_UNSCALABLE,185,5,30},
  61.             --{"sounds/player/footsteps/metal/step4.wav",SOUND_UNSCALABLE,185,5,30},
  62.         },
  63.     particles = CommonEffects.common_machete_hit_particles.particles,
  64.     decal = { 
  65.             texture = System:LoadTexture("Textures/Decal/metal_slash.dds"),
  66.             scale = 0.1,
  67.             random_scale = 100,
  68.             random_rotation = 0.5,
  69.  
  70.         },
  71.     },
  72.     -------------------------
  73.     flashgrenade_hit =         
  74.     {
  75.             particles = 
  76.         {
  77.             { --HitMetalSparksTrail
  78.                 focus = 0.0,
  79.                 color = {1,1,1},
  80.                 speed = 8.0,
  81.                 count = 25, --default 15
  82.                 size = 0.045, 
  83.                 size_speed=0,
  84.                 gravity={x=0,y=0,z=-5},
  85.                 lifetime=0.5,
  86.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  87.                 tail_length = 0.2,
  88.                 frames=0,
  89.                 blend_type = 2
  90.             },
  91.         },
  92.     },
  93.     projectile_hit =     {
  94.     
  95.         particleEffects = {
  96.             name = "explosions.rocket.a",
  97.         },
  98.         
  99.             particles = 
  100.         {
  101.             { --HitMetalSparksTrail
  102.                 focus = 0.0,
  103.                 color = {1,1,1},
  104.                 speed = 8.0,
  105.                 count = 25, --default 15
  106.                 size = 0.045, 
  107.                 size_speed=0,
  108.                 gravity={x=0,y=0,z=-5},
  109.                 lifetime=0.5,
  110.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  111.                 tail_length = 0.2,
  112.                 frames=0,
  113.                 blend_type = 2
  114.             },
  115.         },
  116.     },
  117.     mortar_hit = flashgrenade_hit,
  118.     smokegrenade_hit = flashgrenade_hit,
  119.     grenade_hit = flashgrenade_hit,
  120.  
  121. -------------------------------------
  122.     player_walk = CommonEffects.player_metal_walk,
  123.     player_run = CommonEffects.player_metal_run,
  124.     player_crouch = CommonEffects.player_metal_crouch,
  125.     player_prone = CommonEffects.player_metal_prone,
  126.     player_walk_inwater = CommonEffects.player_walk_inwater,
  127.     player_drop = {
  128.         sounds = {
  129.             {"sounds/player/bodyfalls/bodyfallrock1.wav",SOUND_UNSCALABLE,210,10,150},
  130.             {"sounds/player/bodyfalls/bodyfallrock2.wav",SOUND_UNSCALABLE,210,10,150},
  131.         },
  132. --        decal = { 
  133. --            texture = System:LoadTexture("Textures/Decal/Default.tga"),
  134. --            scale = 0.1,
  135. --        },
  136.     },
  137.     gameplay_physic = {
  138.         piercing_resistence = 15,
  139.         friction = 0.8,
  140.         bouncyness= 0.2, --default 0
  141.     },
  142.  
  143.     AI = {
  144.         fImpactRadius = 5,
  145.     },
  146.             
  147. }